<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>备忘录提醒事项</title>
	<script src="js/vue.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
        }
        .container {
            width: 500px;
            border: 2px solid #ccc;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .header {
            background-color: #fffdd0; /* 淡黄色 */
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .header label {
            margin-right: 10px;
        }
        .header input {
            flex: 1;
            padding: 8px;
            margin-right: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .header button {
            padding: 8px 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .content {
            background-color: #e0f7fa; /* 淡蓝色 */
            flex: 1;
            padding: 10px;
            overflow-y: auto;
        }
        .item-list {
            list-style-type: none;
            padding: 0;
        }
        .item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #ddd;
        }
        .item:last-child {
            border-bottom: none;
        }
        .item span {
            flex: 1;
        }
        .item button {
            margin-left: 5px;
            padding: 4px 8px;
            background-color: blue;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .item button:hover {
            background-color: #f5f5f5;
            color: black;
        }
        .item button.disabled {
            background-color: #f5f5f5;
            color: black;
            cursor: not-allowed;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <label>内容</label>
            <input type="text" id="item-input" placeholder="请输入提醒事项">
            <button>添加</button>
        </div>
        <div class="content" >
            <ul id="item-list" class="item-list"  v-for="(item,index) in list">
                <li class="item">
                    <span>{{index+1}}.</span>
					<span>{{item}}</span>
                    <button class="disabled">上移</button>
                    <button>下移</button>
                    <button>删除</button>
                </li>
                <!-- <li class="item">
                    <span>2. 睡觉</span>
                    <button>上移</button>
                    <button>下移</button>
                    <button>删除</button>
                </li>
                <li class="item">
                    <span>3. 吃饭</span>
                    <button>上移</button>
                    <button class="disabled">下移</button>
                    <button>删除</button>
                </li> -->
            </ul>
        </div>
    </div>
	<script>
		Vue.createApp({
			data() {
				return{
					list:["学习","吃饭","休息"]
				}
			}
		}).mount('#app')
	</script>
</body>
</html>